CURRENT_DAY=$(date +%Y%m%d)

NAME="smb"
PROJECT="${NAME}-backend"

BUILD_PACKAGE="${PROJECT}"
BUILD_FOLDER="${PROJECT}-${CURRENT_DAY}"

rm -rf ${BUILD_FOLDER}


mkdir ./${NAME}
cp -r src nodemon.json package.json ./${NAME}/

tar  -zcvf ${BUILD_PACKAGE}.tar.gz ./${NAME}

rm -rf ${NAME}
mkdir ${BUILD_FOLDER}

mv ${BUILD_PACKAGE}.tar.gz ./${BUILD_FOLDER}/